package 数据结构和算法

object TextDemo {
  def main(args: Array[String]): Unit = {
    val ints = Array[Int](3, 2, 2, 3, 1)
    val value = ints.groupBy(i => i).map(i => (i._1, i._2.length))
    println(value.get(2))
  }

}
